package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 售后订单表
 * </p>
 *
 * @author YanYang
 * @since 2025-04-01 10:49:50
 */
@Getter
@Setter
@TableName("t_refund_order")
@ApiModel(value = "RefundOrder对象", description = "售后订单表")
public class RefundOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("售后订单ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("技师ID")
    @TableField("tid")
    private Long tid;

    @ApiModelProperty("退款订单号")
    @TableField("refund_order_no")
    private String refundOrderNo;

    @ApiModelProperty("订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("申请退款原因")
    @TableField("apply_refund_reason")
    private String applyRefundReason;

    @ApiModelProperty("申请退款金额")
    @TableField("apply_refund_price")
    private BigDecimal applyRefundPrice;

    @ApiModelProperty("可退款金额")
    @TableField("can_refund_price")
    private BigDecimal canRefundPrice;

    @ApiModelProperty("申请退款项目费")
    @TableField("apply_refund_item_price")
    private BigDecimal applyRefundItemPrice;

    @ApiModelProperty("申请退款路费")
    @TableField("apply_refund_fare_price")
    private BigDecimal applyRefundFarePrice;

    @ApiModelProperty("可退款项目费")
    @TableField("can_refund_item_price")
    private BigDecimal canRefundItemPrice;

    @ApiModelProperty("可退款路费")
    @TableField("can_refund_fare_price")
    private BigDecimal canRefundFarePrice;

    @ApiModelProperty("技师获得金额")
    @TableField("technician_get")
    private BigDecimal technicianGet;

    @ApiModelProperty("支付方式")
    @TableField("pay_type")
    private String payType;




    @ApiModelProperty("补充描述")
    @TableField("add_description")
    private String addDescription;

    @ApiModelProperty("客户订单原始转态")
    @TableField("user_order_status")
    private Integer userOrderStatus;

    @ApiModelProperty("技师订单原始状态")
    @TableField("technician_order_status")
    private Integer technicianOrderStatus;

    @ApiModelProperty("审核原因")
    @TableField("false_reason")
    private String falseReason;

    @ApiModelProperty("审核状态（0=待审核，1=审核成功，2=审核失败）")
    @TableField("audit_status")
    private Integer auditStatus;

    @ApiModelProperty("项目名")
    @TableField("item_name")
    private String itemName;

    @ApiModelProperty("项目图")
    @TableField("item_picture")
    private String itemPicture;

    @ApiModelProperty("项目时长（分钟）")
    @TableField("item_time")
    private Integer itemTime;

    @ApiModelProperty("订单总金额（实付）")
    @TableField("order_total_price")
    private BigDecimal orderTotalPrice;

    @ApiModelProperty("项目价格")
    @TableField("order_item_price")
    private BigDecimal orderItemPrice;

    @ApiModelProperty("出行车费")
    @TableField("order_fare_price")
    private BigDecimal orderFarePrice;

    @ApiModelProperty("下单数量")
    @TableField("order_num")
    private Integer orderNum;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
